package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.RxOrderFollow;
import com.ruoyi.system.mapper.RxOrderFollowMapper;
import com.ruoyi.system.service.IRxOrderFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单跟进记录Service业务层处理
 *
 * @author hjf
 * @date 2025-03-05
 */
@Service
public class RxOrderFollowServiceImpl implements IRxOrderFollowService {
    @Autowired
    private RxOrderFollowMapper rxOrderFollowMapper;

    /**
     * 查询订单跟进记录
     *
     * @param id 订单跟进记录主键
     * @return 订单跟进记录
     */
    @Override
    public RxOrderFollow selectRxOrderFollowById(Long id) {
        return rxOrderFollowMapper.selectRxOrderFollowById(id);
    }

    /**
     * 查询订单跟进记录列表
     *
     * @param rxOrderFollow 订单跟进记录
     * @return 订单跟进记录
     */
    @Override
    public List<RxOrderFollow> selectRxOrderFollowList(RxOrderFollow rxOrderFollow) {
        return rxOrderFollowMapper.selectRxOrderFollowList(rxOrderFollow);
    }

    /**
     * 新增订单跟进记录
     *
     * @param rxOrderFollow 订单跟进记录
     * @return 结果
     */
    @Override
    public int insertRxOrderFollow(RxOrderFollow rxOrderFollow) {
        return rxOrderFollowMapper.insertRxOrderFollow(rxOrderFollow);
    }

    /**
     * 修改订单跟进记录
     *
     * @param rxOrderFollow 订单跟进记录
     * @return 结果
     */
    @Override
    public int updateRxOrderFollow(RxOrderFollow rxOrderFollow) {
        return rxOrderFollowMapper.updateRxOrderFollow(rxOrderFollow);
    }

    /**
     * 批量删除订单跟进记录
     *
     * @param ids 需要删除的订单跟进记录主键
     * @return 结果
     */
    @Override
    public int deleteRxOrderFollowByIds(Long[] ids) {
        return rxOrderFollowMapper.deleteRxOrderFollowByIds(ids);
    }

    /**
     * 删除订单跟进记录信息
     *
     * @param id 订单跟进记录主键
     * @return 结果
     */
    @Override
    public int deleteRxOrderFollowById(Long id) {
        return rxOrderFollowMapper.deleteRxOrderFollowById(id);
    }
}
